package com.hh.releasenode.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hh.releasenode.dto.SysUserDTO;
import com.hh.releasenode.entity.SysUserEntity;
import com.hh.releasenode.form.SysUserForm;
import com.hh.releasenode.form.UpdateSysUserForm;

import java.util.Map;

/**
 * @ClassName SysUserService
 * @Description  系统用户service接口
 * @Author KunxianLi
 * Date 2020/6/8 15:52
 * Version 1.0
 **/
public interface SysUserService extends IService<SysUserEntity> {

    void registerUser(SysUserForm userForm);

    String login(String nameOrMobile, String password);

    void logout(String token);

    /**
     * @Author KunxianLi
     * @Description 根据过滤条件分页查询系统用户列表
     * @Date 2020/8/7 15:22
     * @Param [page, params]
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.hh.releasenode.dto.SysUserDTO>
     **/
    Page<SysUserDTO> getSysUserPage(Page<SysUserDTO> page, Map<String,Object> params);


    void updateUserInfo(UpdateSysUserForm form);

}
